home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Snippets / Platforms & Tools / MacApp / AEGestalt 1.0b3 / UAEServerCommand.cp < prev    next >
Encoding:
Text File  |  1991-12-11  |  734 b   |  29 lines  |  [TEXT/MPS ]

  1. //     Copyright © 1991 Apple Computer, Inc. All rights reserved.
  2. //    UAEServerCommand.cp
  3. //    Kent Sandvik DTS
  4. //    This file contains the TAEServer member functions, for serving
  5. //    incoming Apple events.
  6.  
  7.  
  8. #ifndef __AESERVERCOMMAND__
  9. #include "UAEServerCommand.h"
  10. #endif
  11.  
  12.  
  13. //    Empty constructor - for avoiding ptabs in global data space
  14. #pragma segment ARes
  15. TAEServerCommand::TAEServerCommand() {}                    
  16.  
  17.  
  18. //    Process the incoming client AppleEvent, and return the needed information,
  19. //    in our case the gConfiguration structure resident in memory.
  20.  
  21. #pragma segment ADoCommand
  22. pascal void TAEServerCommand::DoIt()
  23. {
  24.     fReply->WriteParameterPtr(kAEConfig, typeConfig, (Ptr) &gConfiguration,
  25.                                     sizeof(gConfiguration));
  26.     fReply->Send();
  27. }
  28.  
  29.